package com.earstep.connectionpool;

/**
 * @title PoolBean.java
 * @describe 连接池实体
 * @author dengxb
 * @version 1.0
 * @created 2011-1-17 下午04:32:57
 */
public class PoolBean {
	private String url; // 连接串,经过加密后的数据库连接字符串
	private String databasename; // 数据库名称
	private String driver; // 数据库驱动
	private String initialSize; // 连接池启动时创建的初始化连接数量
	private String maxActive; // 连接池中可同时连接的最大的连接数
	private String maxWait; // 最大等待时间
	private String removeAbandonedTimeout;
	private String removeAbandoned;
	private String logAbandoned; // 是否记录中断事件， 默认为 false
	private String maxIdle;// 最大空闲连接数
	private String minIdle;// 最小空闲连接数

	public PoolBean() {
		super();
	}

	public PoolBean(String url, String databasename, String driver,
			String initialSize, String maxActive, String maxWait,
			String removeAbandonedTimeout, String removeAbandoned,
			String logAbandoned, String maxIdle, String minIdle) {
		super();
		this.url = url;
		this.databasename = databasename;
		this.driver = driver;
		this.initialSize = initialSize;
		this.maxActive = maxActive;
		this.maxWait = maxWait;
		this.removeAbandonedTimeout = removeAbandonedTimeout;
		this.removeAbandoned = removeAbandoned;
		this.logAbandoned = logAbandoned;
		this.maxIdle = maxIdle;
		this.minIdle = minIdle;
	}

	public String getDatabasename() {
		return databasename;
	}

	public void setDatabasename(String databasename) {
		this.databasename = databasename;
	}

	public String getDriver() {
		return driver;
	}

	public void setDriver(String driver) {
		this.driver = driver;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getInitialSize() {
		return initialSize;
	}

	public void setInitialSize(String initialSize) {
		this.initialSize = initialSize;
	}

	public String getMaxActive() {
		return maxActive;
	}

	public void setMaxActive(String maxActive) {
		this.maxActive = maxActive;
	}

	public String getMaxWait() {
		return maxWait;
	}

	public void setMaxWait(String maxWait) {
		this.maxWait = maxWait;
	}

	public String getRemoveAbandonedTimeout() {
		return removeAbandonedTimeout;
	}

	public void setRemoveAbandonedTimeout(String removeAbandonedTimeout) {
		this.removeAbandonedTimeout = removeAbandonedTimeout;
	}

	public String getRemoveAbandoned() {
		return removeAbandoned;
	}

	public void setRemoveAbandoned(String removeAbandoned) {
		this.removeAbandoned = removeAbandoned;
	}

	public String getLogAbandoned() {
		return logAbandoned;
	}

	public void setLogAbandoned(String logAbandoned) {
		this.logAbandoned = logAbandoned;
	}

	public String getMaxIdle() {
		return maxIdle;
	}

	public void setMaxIdle(String maxIdle) {
		this.maxIdle = maxIdle;
	}

	public String getMinIdle() {
		return minIdle;
	}

	public void setMinIdle(String minIdle) {
		this.minIdle = minIdle;
	}
}
